package com.springsummer.information.green.beans;

import java.util.Collection;

public class BeanDefinitionReaderTest {

    public static void main(String[] args) throws Exception {
        BeanDefinitionRegistry registry=new SimpleBeanDefinitionRegistryImpl();
        BeanDefinitionReader beanDefinitionReader=new ClassPathBeanDefinitionReaderScanner(registry);

        Collection<BeanDefinition> beanDefinitionCollection=beanDefinitionReader.loadBeanDefinitionsInfo("com.springsummer.information.green.hello");
        for(BeanDefinition beanDefinition:beanDefinitionCollection){
            System.out.println(beanDefinition);
        }
    }

}
